package 静态代理;

public class ProxyStar implements Star {

    Star star;

    public ProxyStar(Star star) {
        this.star = star;
    }

    @Override
    public void sing(int money) {
        if (money <= 500) {
            System.out.println("没有档期");

        } else {
            star.sing(money);
        }
    }

    @Override
    public void dance() {
        System.out.println("一起摇摆");
    }
}
